var app = getApp();
Page({
    data: {
        agreementData:"",           // 入驻协议
    },
    // 获取协议
    getAgreement(){
        var self = this;
        var url = "/user/residenceintro";
        wx.getStorage({
            key: 'user',
            success: function (res) {
                wx.request({
                    url: app.url.requestUrl + '/user/residenceintro',
                    method: 'POST',
                    data: {
                        openid: res.data.openid,
                        token: res.data.token,
                    },
                    success: function (res) {
                        self.setData({
                            agreementData: res.data.data,
                        })
                    }
                })
            }
        })
                
    },
    onLoad: function (options) {
        this.getAgreement()
    },
})